<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 添加分类 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/admin/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>
<span class="action-span"><a href="category.php?act=list">商品分类</a></span>
<span class="action-span1"><a href="index.php?act=main">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 添加分类 </span>
<div style="clear:both"></div>
</h1>
<!-- start add new category form -->
<div class="main-div">
  <form action="" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
  <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
  <input type="hidden" name="cate_id" value="{{$arr->cate_id}}">
	 <table width="100%" id="general-table">
		<tbody>
			<tr>
				<td class="label">分类名称:</td>
				<td><input type="text" name="cate_name" maxlength="20" value="{{$arr->cate_name}}" size="27"> <font color="red">*</font></td>
			</tr>
			<tr>
				<td class="label">上级分类:</td>
				<td>
					<select name="parent_id">
						<option value="0">顶级分类</option>
					@foreach ($res as $k=>$v)
						@if($v->cate_id == $arr->parent_id)
			            <option value="{{$v->cate_id}}" selected>{{$v->level}}{{$v->cate_name}}</option>
			            @else
			            <option value="{{$v->cate_id}}">{{$v->level}}{{$v->cate_name}}</option>
			            @endif 
					@endforeach       
					</select>
				</td>
			</tr>
			<tr>
				<td class="label">排序:</td>
				<td><input type="text" name="cate_sort" value="{{$arr->cate_sort}}" size="15"></td>
			</tr>

			<tr>
				<td class="label">是否显示:</td>
				<td>
				@if($arr->is_show == 1)
				<input type="radio" name="is_show" value="0" >是
	            <input type="radio" name="is_show" value="1"checked="true">否
	            @else
	            <input type="radio" name="is_show" value="0" checked="true">是
				<input type="radio" name="is_show" value="1"> 否
	            @endif 
				
				  </td>
			</tr>
			<tr>
				<td class="label">设置为首页推荐:</td>
				<td>
				@if($arr->set_index_recom == 1)
					<input type="radio" name="set_index_recom" value="1" checked="true"> 精品          
					<input type="radio" name="set_index_recom" value="2"> 最新          
					<input type="radio" name="set_index_recom" value="3"> 热门    
				@elseif($arr->set_index_recom == 2)   
					<input type="radio" name="set_index_recom" value="1"> 精品          
					<input type="radio" name="set_index_recom" value="2" checked="true"> 最新          
					<input type="radio" name="set_index_recom" value="3"> 热门 
				@elseif($arr->set_index_recom == 3)   
					<input type="radio" name="set_index_recom" value="1"> 精品          
					<input type="radio" name="set_index_recom" value="2"> 最新          
					<input type="radio" name="set_index_recom" value="3" checked="true"> 热门    
				@else
					<input type="radio" name="set_index_recom" value="1"> 精品          
					<input type="radio" name="set_index_recom" value="2"> 最新          
					<input type="radio" name="set_index_recom" value="3"> 热门 
				@endif
				</td>
			</tr>
      <tr>
        <td class="label">分类描述:</td>
        <td>
          <textarea name="cate_intro" rows="6" cols="48">{{$arr->cate_intro}}</textarea>
        </td>
      </tr>
      </tbody></table>
      <div class="button-div">
        <input type="submit" value=" 确定 ">
        <input type="reset" value=" 重置 ">
      </div>
  </form>
</div>



<div id="footer">
	版权所有 &copy; 2006-2013 NBshop! - 
</div>

</div>

</body>
</html>